package pl.edu.agh.neuraleconomy.ui.chart.provider;

import pl.edu.agh.neuraleconomy.core.ta.indicator.Indicator;

public class SerieProviderFactory {

	public static ISerieProvider getProvider(Indicator indicator) {
		switch (indicator) {
		case CLOSING_PRICE:
			return new ClosingPriceSerieProvider();
		case ROC:
			return new ROCSerieProvider();
		case RSI:
			return new RSISerieProvider();
		case EMA:
			return new EMASerieProvider();
		case SROC:
			return new SROCSerieProvider();
		default:
			return null;
		}
	}
}
